<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"
	isELIgnored="false"%>
<%@ taglib prefix="j" uri="/jodd"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'printOrder.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link type="text/css"
	href="http://eshop.alibaba.com/qbuilder/STATIC_SERVER/c2c/face0/css/xwd_public.css"
	rel="stylesheet" />

<style type="text/css">
.dy_main {
	width: 98%;
	height: auto;
}

.dy_main td {
	padding: 5px 0;
}

.dy_main table {
	width: 100%;
	margin: 5px auto;
}

.dy_sider {
	width: 40%;
	height: 440px;
	padding-left: 20px;
	background:
		url(http://eshop.alibaba.com/qbuilder/STATIC_SERVER/c2c/face0/images/dayin.png)
		no-repeat;
}

.dy_sider li textarea {
	border: 1px solid #a8acad;
	overflow: auto;
	height: 70px;
}

.dy_main_header {
	height: 60px;
	padding-top: 10px;
	width: 100%;
	margin: auto;
}

.dmh_logo {
	width: 100px;
	height: 50px;
	margin: 2px;
	border: 1px solid #c8e3f0;
}

.dmh_title {
	height: 60px;
	line-height: 60px;
	font-size: 22px;
	font-weight: bolder;
}

.dmh_info {
	line-height: 26px;
}

.dy_main .list {
	width: 100%;
	margin: auto;
	overflow: hidden;
}

.dy_main .list_table {
	border-top: 1px solid #616161;
	border-left: 1px solid #616161;
}

.dy_main .list_table th,.dy_main .list_table td {
	padding: 5px;
	border-right: 1px solid #616161;
	border-bottom: 1px solid #616161;
}

.dy_main .list_table th {
	background-color: #616161;
}

.dy_foot {
	width: 100%;
	text-align: right;
}

.ds_title {
	margin-top: 20px;
}

.shdz {
	width: 430px;
}

.li1 {
	width: 15%;
}

.li2 {
	width: 10%;
}

.li3 {
	width: 80%;
}

.submit_btn {
	margin-top: 25px;
}
</style>

<style media=print>
.Noprint {
	display: none;
}

.PageNext {
	page-break-after: always;
	position: relative;
}
</style>

</head>

<body class="nonebody" style="margin:10px; width:98%;font-size:14px">
	<j:iter items="${storehouses }" var="sh">
		<div class="PageNext">
			<div class="dy_main">
				<table cellpadding="0" cellspacing="0">
					<tr class="dy_main_header">
						<td class="left dmh_title" id="dmh_title"
							style="padding-left:10px;" align="center"></td>
						<td class="" style="width:35%">
							<div>
								发货日期：<%=new Date()%></div>
							<div>买家&nbsp;&nbsp;&nbsp;ID：${sh.buyerNick }</div></td>
					</tr>
				</table>
				<table cellpadding="0" cellspacing="0">
					<tr>
						<td width="12.6%">买家名称：</td>
						<td width="15.4%">${sh.receiverName }</td>

						<td width="12.6%">收货地址：</td>
						<td width="46.1%" align="left">${sh.receiverAddress }</td>
						<td width="17.3%">
							<div>邮编：${sh.receiverZip }</div></td>
					</tr>
				</table>
				<div class="list">
					<table class="list_table">
						<thead>
							<tr>
								<td width="8.5%" class="textalign">序号</td>
								<td width="7%" class="textalign">商家编码</td>
								<td width="46.5%" class="textalign">宝贝名称</td>
								<td width="8%" class="textalign">数量</td>
								<td class="textalign">原价</td>
								<td class="textalign">优惠金额</td>
								<td class="textalign">金额</td>
							</tr>
						</thead>
						<tbody>
						<j:iter items="${sh.orders }" var="order" >
							<tr>
								<td class="textalign">${i }</td>
								<td class="textalign">${order.outerIid }</td>
								<td>${order.title }</td>
								<td class="textalign" id="0 _num_1">${order.num }</td>
								<td class="textright" id="0 _price_1">${order.price }</td>
								<td class="textright">2.57</td>
								<td class="textright" id="0 _mount_1">${order.payment }</td>
							</tr>
							</j:iter>
							<tr>
								<td align="center">合计</td>
								<td colspan="2"></td>
								<td class="textalign" id="0+_tNum"></td>
								<td colspan="3" class="textright" id="0+_tMount">总金额： 6.00
									(含邮费0.00)</td>
							</tr><tr>
								<td align="center">买家留言</td>
								<td colspan="6">${sh.buyerMessage }</td>
							</tr>

							<tr>

								<td align="center">卖家备注</td>

								<td colspan="6"></td>

							</tr>



						</tbody>

					</table>

				</div>

				<table>

				</table>

			</div>


		</div>
	</j:iter>

	<div class="Noprint" style="width:90%; margin-top:10px; height:36px;">

		<span style="margin-left:50%;" class="btn4 left mouse_click"
			onclick="window.print();"><span>打 印</span>
		<ins></ins>
		</span>

	</div>
</body>



</html>

